package com.example.leetdemo.consistenthash;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.util.concurrent.*;

public class TaskExecutor {


    public static void main(String[] args) {
        ThreadPoolTaskExecutor taskExecutor = new ThreadPoolTaskExecutor();
        ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(1,
                1, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<Runnable>());
        ExecutorService executorService = Executors.newSingleThreadExecutor();
        ExecutorService executorService1 = Executors.newSingleThreadExecutor();
    }
}
